﻿using AutoMapper;
using BCDto.TMS.DisableArea;
using BCDto.TMS.DisableArea.DisableAreaRangeCoordinate;
using BCDto.TMS.DisableArea.DisableAreaVehicleTypeReference;
using BCEntity.TMS.DisableArea;
using BCEntity.TMS.DisableArea.DisableAreaRangeCoordinate;
using BCEntity.TMS.DisableArea.DisableAreaVehicleTypeReference;

namespace BCService.MapperProfiles.TMS.DisableArea
{
    public class DisableAreaProfile : Profile
    {
        public DisableAreaProfile()
        {
            CreateMap<DisableAreaDto, DisableAreaEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DisableAreaEntity, DisableAreaDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<DisableAreaRequestDto, DisableAreaEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<DisableAreaRangeCoordinateDto, DisableAreaRangeCoordinateEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DisableAreaRangeCoordinateEntity, DisableAreaRangeCoordinateDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<DisableAreaVehicleTypeReferenceDto, DisableAreaVehicleTypeReferenceEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DisableAreaVehicleTypeReferenceEntity, DisableAreaVehicleTypeReferenceDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

        }
    }
}
